Xceed .NET Libraries Documentation
Xceed.Tar Assembly / Xceed.Tar Namespace / QuickTar Class / GetTarContents Method / GetTarContents(String,Boolean,String[]) Method
The full path of the Tar archive. Cannot be empty and must exist.
Boolean value indicating whether files contained within sub-folders of filesToTar items should be listed.
Used to filter the contents of the Tar archive.


In This Topic
    GetTarContents(String,Boolean,String[]) Method
    In This Topic
    Lists the items contained in the Tar archive, specifying whether the operation will be performed recursively and using the provided filters on the returned items.
    Syntax
    'Declaration
     
    Public Overloads Shared Function GetTarContents( _
       ByVal tarFileName As String, _
       ByVal recursive As Boolean, _
       ByVal ParamArray filters() As String _
    ) As QuickTarItem()
    'Usage
     
    Dim tarFileName As String
    Dim recursive As Boolean
    Dim filters() As String
    Dim value() As QuickTarItem
     
    value = QuickTar.GetTarContents(tarFileName, recursive, filters)
    public static QuickTarItem[] GetTarContents( 
       string tarFileName,
       bool recursive,
       params string[] filters
    )

    Parameters

    tarFileName
    The full path of the Tar archive. Cannot be empty and must exist.
    recursive
    Boolean value indicating whether files contained within sub-folders of filesToTar items should be listed.
    filters
    Used to filter the contents of the Tar archive.
    Remarks
    This implementation of Tar is fully read/write compatible with the USTAR format. It is read compatible with GNU Tar archives whose entries do not use the header extensions of this format.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also